<?php   if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once BASEPATH.'core/Loader.php';

class SB_Loader extends CI_Loader
{
	public function __construct()
	{
		parent::__construct();
	}

	public function view($view, $vars = array(), $return = FALSE)
	{
		// return parent::view(rootDir().'/templ/'.getTemplate().'/'.$view, $vars, $return);
		return parent::view('../../templ/'.getTemplate().'/views/'.$view, $vars, $return);
		// return parent::view($view, $vars, $return);
	}

	public function adminView($view, $vars = array(), $return = FALSE)
	{
		return parent::view('admin/'.$view, $vars, $return);
	}

}